package com.chessimo.printer;

import java.awt.Graphics;
import java.awt.Image;

import javax.swing.JPanel;

public class ImageIconPanel extends JPanel {
	private static final long serialVersionUID = 1L;

	private Image ico;
	

	public ImageIconPanel(Image ico) {
		this.ico = ico;
		setLayout(null);
		setSize(this.ico.getWidth(null), this.ico.getHeight(null));
		setVisible(true);
	}

	public void paintComponent(Graphics g) {
		g.drawImage(this.ico, 0, 0, null);
	}

}